package com.lmb.todo.service;

import com.lmb.todo.exception.TodoException;
import com.lmb.todo.pojo.User;

public interface UserService {

    User getById(Integer id) throws TodoException;

    User getByUsernameAndPassword(String username, String password) throws TodoException;

    User getByUsername(String username) throws TodoException;

    Integer add(User user) throws TodoException;

    Integer update(User user) throws TodoException;

    Integer deleteById(Integer id) throws TodoException;

}
